package com.chushouya.order.dto.api.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("订单地址信息")
public class OrderAddressApiDTO {
    @ApiModelProperty(value = "用户手机号", required = true, example = "13800138000")
    private String userPhone; // 用户手机号

    @ApiModelProperty(value = "用户姓名", required = true, example = "张三")
    private String userName; // 用户姓名

    @ApiModelProperty(value = "用户地址", required = true, example = "北京市朝阳区某街道某小区")
    @NotBlank(message = "用户地址不能为空")
    private String address; // 用户地址

    @ApiModelProperty(value = "用户省份", required = false, example = "广东省")
    private String province; // 省份

    @ApiModelProperty(value = "用户城市", required = false, example = "深圳市")
    private String city; // 城市

    @ApiModelProperty(value = "用户区县", required = false, example = "南山区")
    private String district; // 区县

    @ApiModelProperty(value = "用户区域Code", required = true, example = "110105")
    @NotNull(message = "用户区域Code不能为空")
    private Long districtCode; // 区县编码
}
